{layout name="common/layout" /}

<div class="dislpayArrow hidden-xs"><a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a></div>
<style>
    .main_area{
        width:100%;
        height:100%;
        position: relative;
        bottom:0;
        overflow: auto;
    }
    .post_form{
        box-sizing:unset;
        padding: 15px 50px;
        margin: -10px auto;
    }
    .red_must{
        color: red;
        padding-right: 5px;
    }
    .sub_title{
        position: relative;
        float: left;
        width: 120px;
    }
    .editer{
        margin-left: 0px;
    }
    .sub_body{

    }
    /*按钮*/
    .btn_area{
        width: 45%;
        position: relative;
        margin: 40px auto;
    }
    input {
        font-size: 14px;
        color: #222;
        margin: -5px 0 0 10px;
        outline: none;
        border: none;
    }
</style>
<div class="Hui-article-box">
    <div class="Hui-article" style="top:0px;">
        <h3 class="showlist_title">活动>活动详情</h3>
    <div class="main_area">
        <div style="position: relative;width:100%;">
            <div class="lab cl">
                <div class="lab-l">
                    <span class="span"><label class="red_must">&nbsp;</label>活动类型</span>
                </div>
                <div class="lab-r" style="border:0;margin-top: 10px;">
                    <input class="activity_id" type="hidden" value="{$activityinfo['id']}" />
                    <label>{if condition="$activityinfo['type'] eq '1'"}营销活动{else/}推广活动{/if}</label>
                    <!--<input type="submit" class="btn goods_detail" style="margin-left: 30px;width:150px;" value="查看活动商品详情"/>-->
                </div>
            </div>
            <div class="lab cl">
                <div class="lab-l">
                    <span class="span"><label class="red_must">&nbsp;</label>创建者</span>
                </div>
                <div class="lab-r" style="border:0;margin-top: 10px;">
                    <label>店铺--{$activityinfo['store_name']}&nbsp;&nbsp;({$activityinfo['create_time']})</label>
                </div>
            </div>
            <div class="lab cl">
                <div class="lab-l">
                    <span class="span"><label class="red_must">&nbsp;</label>标题</span>
                </div>
                <div class="lab-r" style="border:0;margin-top: 10px;">
                    <label>{$activityinfo['act_name']}</label>
                </div>
            </div>
            <!--
            <div class="lab cl">
                <div class="lab-l">
                    <span class="span"><label class="red_must">&nbsp;</label>适用范围</span>
                </div>
                <div class="lab-r" style="border:0;margin-top: 10px;">
                    <label>全店通用</label>
                </div>
            </div>
            -->
            <div class="lab cl">
                <div class="lab-l">
                    <span class="span"><label class="red_must">&nbsp;</label>折扣</span>
                </div>
                <div class="lab-r" style="border:0;margin-top: 10px;">
                    <label>{$activityinfo['market_rate']}%</label>
                </div>
            </div>
            <div class="lab cl">
                <div class="lab-l">
                    <span class="span"><label class="red_must">&nbsp;</label>活动起止日期</span>
                </div>
                <div class="lab-r" style="border:0;margin-top: 10px;">
                    <label>{$activityinfo['start_time']}至{$activityinfo['end_time']}</label>
                </div>
            </div>
            <div class="lab cl">
                <div class="lab-l">
                    <span class="span"><label class="red_must">&nbsp;</label>活动页面链接</span>
                </div>
                <div class="lab-r" style="border:0;margin-top: 10px;">
                    <label>{$activityinfo['link_url']}</label>
                </div>
            </div>
            <div class="lab cl">
                <div class="lab-l">
                    <span class="span"><label class="red_must">&nbsp;</label>状态</span>
                </div>
                <div class="lab-r" style="border:0;margin-top: 10px;">
                    <label>{if condition="$activityinfo['status'] eq '1'"}有效{else/}失效中{/if}</label>
                </div>
            </div>
            <div class="lab cl">
                <div class="lab-l">
                    <span class="span"><label class="red_must">&nbsp;</label>活动商品</span>
                </div>
                <div class="lab-r" style="border:0;margin-top: 10px;">
                    <div class="sel_goods_show" style="width:400px;height:200px;display:none;overflow:auto;margin-top: 0px; ">
                        <ul class="sel_goods_area">
                            {foreach($act_goods as $k => $v)}
                            <li><img src='{$v['goods_main_pic']}' style='width:40px;height:40px;margin-right: 10px;'/ >{$v['goods_name']}</li>
                            {/foreach}
                        </ul>
                    </div>
                </div>
            </div>
            <div  class="div-box btn_area">
                <input type="submit" class="btn back_btn" style="margin-left: 30px;" value="返回"/>
            </div>
        </div>
    </div>
</div>
</div>
<script type="text/javascript">
    var show_btn = "{$show_btn}";
    if(parseInt(show_btn) == 0){
        $(".sel_goods_show").hide();
    }else{
        $(".sel_goods_show").show();
    }

    /**
     * 按钮点击
     */

    $(".back_btn").click(function(){
        window.location.href ="{:url('activity/listActivity')}?page={$page}";
    });
</script>